package com.bitcola.security.admin.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @date 2019/11/17 16:48
 */
@Data
public class Serie {
    private String name;
    private String type = "bar";
    private List<BigDecimal> data = new ArrayList<>();
    private String legendName;

    public void setName(String name) {
        this.name = name;
        if ("充值".equals(name)) {
            this.legendName = "Deposit";
        } else if ("提现".equals(name)) {
            this.legendName = "Withdraw";
        } else if ("手续费".equals(name)) {
            this.legendName = "feeOut";
        } else if ("下单".equals(name)) {
            this.legendName = "tradeIn";
        } else if ("成交".equals(name)) {
            this.legendName = "tradeOut";
        } else if ("系统奖励".equals(name)) {
            this.legendName = "System reward";
        } else if ("活动奖励".equals(name)) {
            this.legendName = "Activity reward";
        } else if ("划转收入".equals(name)) {
            this.legendName = "transformIn";
        } else if ("划转支出".equals(name)) {
            this.legendName = "transformOut";
        } else if ("锁仓收入".equals(name)) {
            this.legendName = "unLockIn";
        } else if ("锁仓支出".equals(name)) {
            this.legendName = "unLockOut";
        }
    }
}
